@font-face {
  font-family: 'publicIcon';  /* project id 618243 */
	src: url('icon/iconfont.eot');
	src: url('icon/iconfont.eot?#iefix') format('embedded-opentype'),
			url('icon/iconfont.woff2') format('woff2'),
			url('icon/iconfont.woff') format('woff'),
			url('icon/iconfont.ttf') format('truetype'),
			url('icon/iconfont.svg#iconfont') format('svg');
}

/* 树形菜单的样式 */
.tree-img-list{
	width: 400px;
	overflow: hidden;
	padding-right: 20px;
}

.tree-img-list .img-div{
	width: 100%;
	padding: 5px;
	margin-bottom: 10px;
	float: left;
	display: flex;
	justify-content: space-between;
	border: 1px solid #ececec;
	border-radius: 4px;
}

.tree-img-list .img-div .file-icon{
	float: left;
	margin-top: 2px;
	font-family: publicIcon;
}

.tree-img-list .img-div .file-name{
	width: 200px;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tree-img-list .img-div .menu{
	display: flex;
	justify-content: space-between;
}

.tree-img-list .img-div .row span{
	font-family: publicIcon;
	cursor: pointer;
}

.tree-img-list .upload-btn-progress{
	height: 12px;
	line-height: 12px;
	margin-top: 6px;
	font-size: 8px;
	background: lawngreen;
	border-radius: 4px;
	cursor: pointer;
	color: #fff;
	text-align: center;
}

/* 有预览图的列表样式 */
.img-list {
	width: 100%;
	-webkit-user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
}

.img-list .img-div {
	border: 1px solid #ECECEC;
	border-radius: 4px;
	margin-bottom: 5px;
	overflow: hidden;
	float: left;
	text-align: center;
	margin-right: 10px;
	position: relative;
}

.img-list .img-div .file .file-icon{
	float: left;
	margin: 2px;
	font-family: publicIcon;
}

.img-list .img-div .file .file-name{
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.img-list .img-div img {
	transition: .5s;
}

.img-list .img-div .menu {
	width: 100%;
	height: 30px;
	top: 50%;
	transform: translateY(-50%);
	box-sizing: border-box;
	display: none;
	position: absolute;
}

.img-list .img-div .menu .row {
	display: flex;
	justify-content: space-between;
}

.img-list .img-div .menu .row span {
	position: relative;
	font-family: "publicIcon";
	font-size: 20px;
	cursor: pointer;
}

.img-list .img-div:hover img {
	opacity: .6;
	transition: .5s;
}

.img-list .img-div:hover .menu {
	display: block;
}

.img-list .img-div .upload-btn-progress {
	height: 12px;
	line-height: 12px;
	position: absolute;
	font-size: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: lawngreen;
	border-radius: 4px;
	cursor: pointer;
	color: #fff;
}

/* 上传图片按钮的样式 */
.upload {
	position: relative;
	float: left;
	margin-left: 2px;
}

.upload input {
	width: 100%;
	height: 100%;
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0px;
}

.upload .upload-box {
	width: 100%;
	height: 100%;
	font-size: 70px;
	border-radius: 4px;
	border-style: dashed;
	display: block;
	font-family: "publicIcon";
}

/* 遮罩层样式 */
#mask {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0);
}

#mask img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
}
